package com.cloudbroker.bcs.platform.dav.middle.bizservice.impl;

import org.springframework.stereotype.Service;

import com.cloudbroker.bcs.common.util.VOUtil;
import com.cloudbroker.bcs.platform.dav.bizapi.constants.status.AccessTokenType;
import com.cloudbroker.bcs.platform.dav.bizapi.service.base.vo.HSBCPSVO;
import com.cloudbroker.bcs.platform.dav.bizapi.service.business.system.back.ItnAccesstokenForm;
import com.cloudbroker.bcs.platform.dav.bizapi.service.export.ItnBizService;
import com.cloudbroker.bcs.platform.dav.middle.util.AccessTokenUtil;

@Service
public class ItnBizServiceImpl implements ItnBizService {
    
    @Override
    public ItnAccesstokenForm funcGetItnAccessToken(HSBCPSVO form) {
        ItnAccesstokenForm result = new ItnAccesstokenForm();
        String access_token = AccessTokenUtil.getAccessToken(AccessTokenType.ITN_TOKEN.getVal());
        result.setItn_access_token(access_token);
        return VOUtil.setSuccessResult(result);
    }
}
